﻿@using Sportsbook.Domain.Models.Lines;
@model List<ILine>
@foreach (var line in Model)
{
    <tr>
        <td>
            <span class="lines-favourite">@line.HomeTeam</span> -vs- <span  class="lines-underdog">@line.AwayTeam</span>
        </td>
        <td class="lines-td">
            @line.Moneyline.Handicap
        </td>
        <td class='lines-odd lines-@line.Spread.HomePriceTrend'>
           @using (Ajax.BeginForm("AddTicket", "BetSlip", new AjaxOptions() { HttpMethod = "Post" }))
            {
            <input type="submit" value="@line.Moneyline.HomePrice.ToString("+#;-#")"/>
            }
        </td>
         <td class='lines-odd lines-@line.Moneyline.HomePriceTrend'>
            @using (Ajax.BeginForm("AddTicket", "BetSlip", new AjaxOptions() { HttpMethod = "Post" }))
            {
            <input type="submit" value="@line.Moneyline.AwayPrice.ToString("+#;-#")"/>
            }
        </td>
        <td class="lines-td">
            @line.Total.Points
        </td>
        <td class='lines-odd lines-@line.Total.HomePriceTrend'>
            @using (Ajax.BeginForm("AddTicket", "BetSlip", new AjaxOptions() { HttpMethod = "Post" }))
            {
            <input type="submit" value="@line.Total.HomePrice.ToString("+#;-#")"/>
            }
        </td>
        <td class='lines-odd lines-@line.Total.HomePriceTrend'>
            @using (Ajax.BeginForm("AddTicket", "BetSlip", new AjaxOptions() { HttpMethod = "Post" }))
            {
            <input type="submit" value="@line.Total.AwayPrice.ToString("+#;-#")"/>
            }
        </td>
    </tr>
}
